package com.ciei.dpagm.controller;

import com.alibaba.fastjson.JSONObject;
import com.ciei.dpagm.common.controller.BaseController;
import com.ciei.dpagm.service.LogService;
import com.ciei.dpagm.util.PageParam;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LogController extends BaseController {
	
	@Autowired
	private LogService logService;
	



    @RequestMapping("vue/loginLog/load")
    @ResponseBody
    public JSONObject loadLoginLogVue(@RequestBody JSONObject page) {
        PageParam pageParam = getPageParams(page);
        return logService.loadLogTableData(pageParam);
    }

//	@RequestMapping("vue/operationLog/load")
//	@ResponseBody
//	public JSONObject loadOperationLogVue(@RequestBody JSONObject page) {
//		PageParam pageParam=getPageParams(page);
//		return logService.loadOperationLogVue(pageParam);
//	}

	@RequestMapping("log/loadLogTypeComboOption")
	@ResponseBody
	public JSONObject loadLogTypeComboOption() {
		return logService.loadLogTypeComboOption();
	}

}
